import service from './index'

//按需导出
export function bjglPageCount(data) {
    return service({
        url: '/admin/class/page/count',
        method: 'get',
        params:data
    })
}
export function bjglPage(data,page) {
    return service({
        url: '/admin/class/page/'+page,
        method: 'get',
        params:data
    })
}
export function bjglAdd(data) {
    return service({
        url: '/admin/class',
        method: 'post',
        data:data
    })
}
export function departmentAll() {
    return service({
        url: '/admin/major/names',
        method: 'get',
    })
}
//详情
export function bjglDetail(id) {
    return service({
        url: '/admin/class/'+id,
        method: 'get',  
    })
}
//编辑
export function bjglEdit(data) {
    return service({
        url: '/admin/class',
        method: 'put',
        data:data  
    })
}
//删除
export function bjglDelete(id) {
    return service({
        url: '/admin/class/'+id,
        method: 'delete',

    })
}